﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QuanLyKhachHang.BUS
{
    #region using
    using System.Data;
    using QuanLyKhachHang.DAO;
    using QuanLyKhachHang.DTO;
    #endregion
    public class KH_LONBUS
    {
        private KH_LONDAO objDAO;
        public KH_LONBUS(String strPath)
		{
            objDAO = new KH_LONDAO(strPath);
		}

        public DataSet ImportKhachHangLon(string sheetname)
		{
			DataSet ds;
			try
			{
				ds = objDAO.ImportKhachHangLon(sheetname);
				return ds;
			}
			catch(System.Exception e)
			{
				throw new Exception(e.Message, e.InnerException);
			}
		}

        public string[] GetExcelSheetNames()
        {
            return objDAO.GetExcelSheetNames();
        }
    }
}
